package shape;

public class Circle extends Shape{
    double Radius;
    Circle () {
        Name = "Circle";
    }
    Circle (double radius) {
        Radius = radius;
        Name = "Circle";
    }
    Circle (double radius, String color) {
        Radius = radius;
        Color = color;
        IsFilled = true;
        Name = "Circle";
    }
    public double getRadius () {
        return Radius;
    }
    public void setRadius (double radius) {
        Radius = radius;
    }
    public double getArea() {
        return Math.PI * Radius * Radius;
    }
    public double getPerimeter() {
        return 2 * Math.PI * Radius;
    }
}
